package com.example.common.enums;

/**
 * @Description: 应答码
 * @Param: 0         默认值
 * @Param: 1000-2000 请求有误
 * @Param: 2000-3000 服务器错误
 * @Param: 3000-4000 访问dubbo错误
 * @auther: uu
 * @date: 2023/7/12 下午 08:31
 */

public enum RCode {
    UNKOWN(0,"请稍后重试"),
    SUCC(1000,"请求成功"),
    REQUEST_PARAM_ERR(1001,"请求参数有误"),
    REQUEST_PRODUCT_TYPE_ERR(1002,"请求产品有误"),
    REQUEST_PRODUCT_OFF(1003,"产品下线了！！！"),
    REQUEST_PHONE_FORMAT_ERR(1004,"手机号码格式不正确"),
    REQUEST_PHONE_EXIST(1005, "手机已被注册"),
    REQUEST_SMS_CODE_ERR(1006, "验证码错误"),
    REQUEST_REGISTER_ERR(1007, "注册失败"),
    REQUEST_LOGIN_ERR(1008, "用户登录失败"),
    REQUEST_REALNAME_ERR(1009, "实名认证失败"),
    REQUEST_REALNAME_EXIST(1010, "已经实名认证了"),
    REQUEST_TOKEN_ERR(1011,"token无效"),
    ;
    RCode(int code, String text){
        this.code = code;
        this.text = text;
    }

    private int code;
    private String text;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
